from twisted.internet import reactor
from twisted.web.server import Site
from  twisted.web.static import File

root = File('/home/wwwroot/default')
root.putChild("logs", File("/home/wwwlogs/"))
root.putChild("doc", File("/home/wwwroot/"))
factory = Site(root)

reactor.listenTCP(8000, factory)
reactor.run()